class Calculator:
    ability_name = 'MainAbility'
    bundle_name = 'ohos.samples.distributedcalc'

    left_back = dict(x=60, y=110)


class Camera:
    ability_name = 'com.ohos.camera.MainAbility'
    bundle_name = 'com.ohos.camera'
    # 拍照模式
    photography_mode = dict(x=360, y=985)
    # 录像模式
    video_mode = dict(x=444, y=985)
    # 拍照按钮
    shot_button = dict(x=360, y=1100)
    end_recoding = dict(x=320, y=1100)
    # 左下角缩率图
    thumbnail = dict(x=200, y=1100)
    # 播放按钮
    play_video = dict(x=360, y=640)


class Clock:
    ability_name = 'MainAbility'
    bundle_name = 'ohos.samples.etsclock'


class Contact:
    ability_name = 'com.ohos.contacts.MainAbility'
    bundle_name = 'com.ohos.contacts'

    add_contact_btn = dict(x=612, y=114)

    test_name = 'a'
    test_company = 'c'
    test_number = '012'

    detail_btn = dict(x=662, y=328)

    mms_link = dict(x=666, y=645)


class Smartperf:
    ability_name = 'MainAbility'
    bundle_name = 'com.ohos.smartperf'


class Setting:
    ability_name = 'com.ohos.settings.MainAbility'
    bundle_name = 'com.ohos.settings'

    wifi_name = ''
    wifi_pwd = ''

    pwd_input_area = dict(x=225, y=260)
    certificate_item = dict(x=80, y=460)


class Gallery:
    ability_name = 'com.ohos.photos.MainAbility'
    bundle_name = 'com.ohos.photos'


class Keyboard:
    key_q = dict(x=42, y=810)
    key_w = dict(x=112, y=810)
    key_e = dict(x=186, y=810)
    key_r = dict(x=256, y=810)
    key_t = dict(x=326, y=810)
    key_y = dict(x=396, y=810)
    key_u = dict(x=466, y=810)
    key_i = dict(x=536, y=810)
    key_o = dict(x=608, y=810)
    key_p = dict(x=680, y=810)

    key_1 = key_q
    key_2 = key_w
    key_3 = key_e
    key_4 = key_r
    key_5 = key_t
    key_6 = key_y
    key_7 = key_u
    key_8 = key_i
    key_9 = key_o
    key_0 = key_p

    key_a = dict(x=80, y=920)
    key_s = dict(x=150, y=920)
    key_d = dict(x=220, y=920)
    key_f = dict(x=290, y=920)
    key_g = dict(x=360, y=920)
    key_h = dict(x=430, y=920)
    key_j = dict(x=500, y=920)
    key_k = dict(x=570, y=920)
    key_l = dict(x=640, y=920)

    key_z = dict(x=145, y=1030)
    key_x = dict(x=215, y=1030)
    key_c = dict(x=290, y=1030)
    key_v = dict(x=360, y=1030)
    key_b = dict(x=430, y=1030)
    key_n = dict(x=505, y=1030)
    key_m = dict(x=580, y=1030)

    upper_lower = dict(x=56, y=1030)
    abc_123 = dict(x=56, y=1150)
    close = dict(x=678, y=700)
    delete = dict(x=670, y=1030)

class KeyCode:
    """一些常用的键盘码"""
    KEYCODE_HOME = '1'
    KEYCODE_BACK = '2'
    KEYCODE_0 = '2000'
    KEYCODE_1 = '2001'
    KEYCODE_2 = '2002'
    KEYCODE_3 = '2003'
    KEYCODE_4 = '2004'
    KEYCODE_5 = '2005'
    KEYCODE_6 = '2006'
    KEYCODE_7 = '2007'
    KEYCODE_8 = '2008'
    KEYCODE_9 = '2009'
    KEYCODE_A = '2017'
    KEYCODE_B = '2018'
    KEYCODE_C = '2019'
    KEYCODE_D = '2020'
    KEYCODE_E = '2021'
    KEYCODE_F = '2022'
    KEYCODE_SPACE = '2050'
    KEYCODE_DEL = '2055'


class Memorandum:
    ability_name = 'MainAbility'
    bundle_name = 'com.ohos.note'
    # 左上角返回键
    back = dict(x=54, y=102)
    # 左上角打开和收起菜单
    open_menu = dict(x=72, y=128)
    close_menu = dict(x=55, y=130)
    # 右上角 +
    add_note = dict(x=648, y=128)
    # 右上角 √
    save_note = dict(x=665, y=100)
    # 右上角删除
    del_note = dict(x=665, y=100)
    # 置顶
    topping_menu = dict(x=90, y=1155)
    # 底部删除按钮
    delete_menu = dict(x=270, y=1155)
    # 移动图标
    move_menu = dict(x=450, y=1155)
    # 多选
    multi_select_menu = dict(x=630, y=1155)
    # 最近删除点进笔记里面的删除
    delete_in_note_from_dustbin = dict(x=225, y=1155)
    # 最近删除主界面底部的删除
    delete_in_dustbin_main_page = dict(x=180, y=1155)
    # 恢复笔记
    recover_from_dustbin = dict(x=496, y=1155)

    # 新建文件夹输入框
    new_folder_input_area = dict(x=224, y=1030)
    # 笔记输入框
    content_area = dict(x=360, y=640)


class Music:
    ability_name = 'ohos.samples.distributedmusicplayer.MainAbility'
    bundle_name = 'ohos.samples.distributedmusicplayer'

    allow_permission = dict(x=515, y=686)

    progress_end = dict(x=660, y=980)
    progress_start = dict(x=55, y=980)

    image3_bounds = dict(x1=372, y1=1037, x2=522, y2=1187)


class DeskTop:
    center = dict(x=360, y=640)

    back_button = dict(x=208, y=1244)
    home_button = dict(x=360, y=1244)
    recent_button = dict(x=514, y=1244)
    clear_button = dict(x=360, y=1170)
    # 从下往上滑动
    swipe_up = dict(x1=360, y1=720, x2=360, y2=360)
    swipe_down = dict(x1=360, y1=360, x2=360, y2=720)
    swipe_left = dict(x1=600, y1=600, x2=200, y2=600)

    swipe_back = dict(x1=720, y1=640, x2=540, y2=640)
    swipe_home = dict(x1=360, y1=1280, x2=360, y2=960)
    swipe_recent = dict(x1=360, y1=1280, x2=360, y2=960, steps=100)
    # 下拉通知栏
    pull_down_notification_bar = dict(x1=128, y1=0, x2=128, y2=240)
    notification_setting_btn = dict(x=660, y=115)
    # 底部导航栏
    navigation_bar = dict(x1=0, y1=1208, x2=720, y2=1280)


class LockScreen:
    NUM_1 = dict(x=205,y=480)
    NUM_2 = dict(x=360,y=480)
    NUM_3 = dict(x=515,y=480)
    NUM_4 = dict(x=205,y=690)
    NUM_5 = dict(x=360,y=690)
    NUM_6 = dict(x=515,y=690)
    NUM_7 = dict(x=205,y=895)
    NUM_8 = dict(x=360,y=895)
    NUM_9 = dict(x=515,y=895)
    NUM_CALL = dict(x=200, y=1110)
    NUM_0 = dict(x=360, y=1100)
    NUM_BACK = dict(x=515, y=1110)
    NUM_DEL = NUM_BACK


class ControlCenter:
    pull_down = dict(x1=500, y1=0, x2=500, y2=80)
    pull_up = dict(x1=360, y1=640, x2=360, y2=0)

    setting_btn = dict(x=516, y=140)
    edit_btn = dict(x=616, y=140)
    wlan_switch = dict(x=120, y=270)
    bluetooth_switch = dict(x=450, y=270)
    screenshot_switch = dict(x=126, y=456)
    sound_switch = dict(x=282, y=456)
    location_switch = dict(x=440, y=456)
    auto_rotate_switch = dict(x=594, y=456)
    airplane_mode_switch = dict(x=594, y=456)


class SMSMMS:
    ability_name = 'com.ohos.mms.MainAbility'
    bundle_name = 'com.ohos.mms'
